﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Net.Sockets;

using libReadWrite;
using libCommonClass;

namespace TTServer.Messages
{
    public class KeyMemberAuthentificationRequestMessage : TTMessage
    {
        private String _password;

        public String Password
        {
            get { return _password; }
            set { _password = value; }
        }


        public byte[] encryptedPassword;

        public KeyMemberAuthentificationRequestMessage()
        {
            
        }

        public override void ReadMessage(BigEndianReader sr)
        {
            //_password = sr.ReadString();

            encryptedPassword = sr.ReadByteArray();

        }

        public override void WriteMessage(BigEndianWriter sw)
        {
            throw new NotImplementedException();
        }

        public override TTMessage Clone()
        {
            return (new KeyMemberAuthentificationRequestMessage());
        }

        public override int GetMessageID()
        {
            return MessageKind.KEY_MEMBER_AUTHENTIFICATION_REQUEST;
        }

        public override string GetMessageName()
        {
            return "KeyMemberAuthentificationRequestMessage";
        }
    }
}
